package me.zhenqu.model.bo.impl;

import me.zhenqu.model.bo.PascodeBo;
import me.zhenqu.model.dao.PascodeDao;
import me.zhenqu.model.pojo.entity.Pascode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by IntelliJ IDEA.
 * User: yibing.tan
 * Date: 11-11-9
 * Time: 上午11:55
 * To change this template use File | Settings | File Templates.
 */
@Service("pascodeBo")
public class PascodeBoImpl implements PascodeBo{
    @Autowired
    PascodeDao pascodeDao;

    public void setPascodeDao(PascodeDao pascodeDao) {
        this.pascodeDao = pascodeDao;
    }

    @Override
    public void save(Pascode pascode) {
        pascodeDao.save(pascode);
    }

    @Override
    public void update(Pascode pascode) {
        pascodeDao.update(pascode);
    }

    @Override
    public void delete(Pascode pascode) {
        pascodeDao.delete(pascode);
    }

    @Override
    public Pascode findByID(Long user_id) {
        return pascodeDao.findByID(user_id);
    }
}
